﻿using CalligraphyEditor.CalligraphyData;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CalligraphyEditor.ViewModel
{
    static class VMBaseData
    {

        private static ObservableCollection<T_Dynast> _dynast;

        public static ObservableCollection<T_Dynast> Dynast
        {
            get { return _dynast; }
        }

        private static ObservableCollection<T_Style> _style;

        public static ObservableCollection<T_Style> Style
        {
            get { return _style; }
        }

        static VMBaseData()
        {
            var qDynast = from s in CalligraphyEditor.App.Entities.T_Dynast select s;
            _dynast = new ObservableCollection<T_Dynast>(qDynast);

            var qStyle = from s in CalligraphyEditor.App.Entities.T_Style select s;
            _style = new ObservableCollection<T_Style>(qStyle);
        }
    }

        
}
